package com.andy.network.util

/**
 * @creator:LuoFan
 * @date:2022/9/29
 * @description:网络请求回调
 */
interface HttpListener<T> {
    //成功
    fun onSuccess(data: T)

    // 服务器返回的失败code和msg
    fun onError (errorCode: Int, errorMsg: String)

    // 服务器无返回的请求失败
    fun onFailed (error: Throwable?)

}